/**
 * Alipay.com Inc.
 * Copyright (c) 2004-2017 All Rights Reserved.
 */
package com.example.demo.common;

/**
 * @author kun.wang
 * @version $Id: EnumError.java, v 0.1 2017-03-01 下午2:42 kun.wang Exp $$
 */
public enum EnumError {
    /**
     * 服务成功
     */
    SUCCESS(1000, "服务成功"),
    SUCCESS1(0, "图片上传成功"),
    FAILED(5000, "系统繁忙，请稍后重试。");
    private int code;

    private String msg;

    private EnumError(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}